<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>你好</h1>
    
    <script>
        var num1 = 1;
        var num2 = 1;
        console.log(num1);
        console.log(num2);
        alert(num1)
        alert(num2)
        var temp = 0;
        while(true){
            try {
                temp = num1 + num2;
                console.log(temp);
                alert(temp)
                if(num2 == 1) num2 = temp;
                else if(num2 > num1) num1 = temp;
                else if(num2 < num1) num2 = temp;    
            } catch (error) {
                alert(error)
                break;
            }        
            
        }




    </script>
</body>
</html>